const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const ObjectId = mongoose.Types.ObjectId;

const schema = new Schema({
	_id: { type: ObjectId },
	apiname: { type: String, default: "" },
	urltype: { type: String, default: "" },
	sqlname: { type: String, default: "" },
	sqltable: { type: String, default: "" },
	uname: { type: String, default: "" },
	upass: { type: String, default: "" },
	port: { type: String, default: "" },
	ip: { type: String, default: "" },
	data: { type: String, default: "" },
	time: { type: Date },
});

const model = mongoose.model("apilist", schema, "apilist");

module.exports = model;
